home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Tool Chest / Development Kits / MPW etc. / MPW-GM / MPW / Examples / CExamples / EditCDev.make < prev    next >
Encoding:
Text File  |  1995-09-21  |  1.3 KB  |  48 lines  |  [TEXT/MPS ]

  1. #
  2. #    Macintosh Developer Technical Support
  3. #
  4. #    EditText Sample Control Panel Device
  5. #
  6. #    EditCdev
  7. #
  8. #    EditCdev.make    -    Make Source
  9. #
  10. #    Copyright © 1988, 1995 Apple Computer, Inc.
  11. #    All rights reserved.
  12. #
  13. #    Versions:    1.0                    8/88
  14. #
  15. #    Components:    EditCdev.c            August 1, 1988
  16. #                EditCdev.r            August 1, 1988
  17. #                EditCdev.make        August 1, 1988
  18. #
  19. #    EditCdev is a sample Control Panel device (cdev) that 
  20. #    demonstrates the usage of the edit-related messages.  
  21. #    EditCdev demonstrates how to implement an editText item
  22. #    in a Control Panel Device.  It utilizes the new undo, cut, copy,
  23. #    paste, and delete messages that are sent to cdevs in
  24. #    response to user menu selections.
  25. #
  26. #    It is comprised of two editText items that can be edited 
  27. #    and moved between via the mouse or tab key.
  28. #
  29.  
  30. SrcName            =    EditCdev
  31. Lang            =    C
  32. CdevName        =    {SrcName}
  33. Destination        =    {SystemFolder}Control Panels:
  34. COptions        =    -proto strict -w 17
  35.  
  36. Objs            =    {SrcName}.{Lang}.o ∂
  37.                     "{Libraries}"Interface.o
  38.  
  39. {CdevName}        ƒƒ    {Objs} {CdevName}.make
  40.     Link -o {Targ} -rt cdev=-4064 -m TEXTCDEV {Objs} && ∂
  41.         Setfile {CdevName} -a B && ∂
  42.             Duplicate -y {CdevName} "{Destination}"
  43.  
  44. {CdevName}        ƒƒ    {SrcName}.r {CdevName}.make
  45.     Rez -o {Targ} {SrcName}.r -t cdev -c hack -rd -append && ∂
  46.         Setfile {CdevName} -a B && ∂
  47.             Duplicate -y {CdevName} "{Destination}"
  48.